package com.jin.spirng_boot_learn.examples.convert;

import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("examples/convert")
@Log4j2
public class ConvertCaseController {

    /**
     * 请求 curl http://localhost:8080/example/convert?xiaoming=1,5000
     */
    @GetMapping
    public String testConvertParam(@RequestParam("xiaoming") Employee employee) {
        log.debug("已经将String直接转换为Employee{}",employee);
        return "dddd";
    }



}
